﻿@{
    ViewBag.Title = "EndTest";
    Layout = "~/Areas/Student/Views/Shared/_Layout.cshtml";
}
<div class="matter">
    <div class="container">
        <div class="row">
            <div class="col-md-12" style="flex-align: center;">
                <div class="widget">
                    <div class="widget-content">
                        <hr />
                        <div style="text-align: center">
                            @if (@ViewBag.Result == "Passed")
                            {
                            
                                <p style="color: green;">Congratulation !! You Have Successfuly Cleared This Exam.</p>
                                <h1 style="color: green;">Result Is @ViewBag.Result</h1>
                            }
                            else
                            {
                                <p style="color: red;">Sorry!! You Have Not Cleared This Exam.</p>
                                <h1 style="color: red;">Result Is @ViewBag.Result</h1>
                            }
                        </div>
                        <hr />

                        <div class="widget-head">
                            <div class="pull-left">Test Summary</div>
                            <div class="clearfix"></div>
                        </div>

                        <div class="widget-content">
                            <table class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <td>Passsing Score</td>
                                        <td>@ViewBag.PassingScore %</td>
                                    </tr>
                                    <tr>
                                        <td>TotalQuestion</td>
                                        <td>@ViewBag.TotalQuestion</td>
                                    </tr>
                                    <tr>
                                        <td>TotalMarks</td>
                                        <td>@ViewBag.TotalMarks</td>
                                    </tr>
                                    <tr>
                                        <td>Attempted Questions</td>
                                        <td>@ViewBag.AttemptedQuestions</td>
                                    </tr>
                                    <tr>
                                        <td>UnAttempted Questions</td>
                                        <td>@ViewBag.UnAttemptedQuestions</td>
                                    </tr>
                                    <tr>
                                        <td>CorrectAnswers</td>
                                        <td>@ViewBag.CorrectAnswers</td>
                                    </tr>
                                    <tr>
                                        <td>WrongAnswers</td>
                                        <td>@ViewBag.WrongAnswers</td>
                                    </tr>
                                    <tr>
                                        <td>Mark's For Right Answer</td>
                                        <td>@ViewBag.totalPositiveMarks</td>
                                    </tr>
                                    <tr>
                                        <td>Mark's for Wrong Answer</td>
                                        <td>@ViewBag.totalNegativeMarks</td>
                                    </tr>
                                    <tr>
                                        <td>Total Mark</td>
                                        <td>@ViewBag.TotalScore</td>
                                    </tr>
                                    <tr>
                                        <td>Percantage [%]</td>
                                        <td>@ViewBag.Percantage % Marks</td>
                                    </tr>
                                </thead>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>